<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="common.jsp" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="cart" scope="session" class="mypack.ShoppingCart"/>

<html>
<head>
<title>网上图书超市</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="CSS/style1.css" rel="stylesheet">
</head>
 <body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td>
<table width="750" height="768"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td valign="top">
        <jsp:include page="banner.jsp"/>
	<table width="100%" height="330"  border="0" cellpadding="0" cellspacing="0">
        <tr>
      
        
          <td width="73%" valign="top"><table width="100%" height="272"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="97%" height="220" valign="top">
			   <table width="100%" height="126"  border="0" cellpadding="0" cellspacing="0">

			    <tr>
                  <td valign="top"><table width="100%" height="59"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="86%" height="61" class="tableBorder_B"><img src="Images/checkout.GIF" width="176" height="61"></td>
                    </tr>
                  </table>
          <form method="post" action="receipt.jsp" name="form1">
                    <table width="100%" height="339"  border="1" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="7%" height="26">&nbsp; </td>
                        <td height="26" colspan="2" class="word_deepgrey" bgcolor="#FFCC66">注意：请您不要恶意或非法提交订单以免造成不必要的麻烦！</td>
                        </tr>
                        <%
                        request.setCharacterEncoding("utf-8");
                        String Username="";
                        Username=(String)session.getAttribute("UserName");

                        Collection l = bookDB.getMemberInformation(Username);
                            Iterator i = l.iterator();
                            Member1 bt = null;
                              if(i.hasNext()){
                               bt=(Member1)i.next();              

                        %>
                      <tr>
                        <td height="26" colspan="2" align="center">用 户 名：</td>
                        <td width="74%"><%=Username%>
                          </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">真实姓名：</td>
                        <td><%=bt.getTrueName()%>
                         </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">联系地址：</td>
                        <td><%=bt.getAddress()%>
                          </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">邮政编码：</td>
                        <td><%=bt.getPostcode()%>
                          </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">联系电话：</td>
                        <td><%=bt.getTel()%>
                          </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">购书数目：</td>
                        <td><%=cart.getNumberOfItems()%>
                         </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">应付金额：</td>
                        <td><%=cart.getTotal()%>
                          </td>
                      </tr>
                      <tr>
                        <td height="26" colspan="2" align="center">Email地址：</td>
                        <td><%=bt.getEmail()%>
                          </td>
                      </tr>
                      <tr>
                        <td height="101" colspan="2" align="center">备&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
                        <td><p>谢谢你的参与，
                                         祝你一路顺风.谢谢！！</p></td>
                      </tr>
                      <tr align="center">
                        <td colspan="3"><input name="Button" type="submit" class="btn_grey" value=" 提  交 " >
                           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                           <input name="Submit2" type="button" class="btn_grey" value=" 返  回 " onClick="history.back(1);"></td>
                        </tr>
                        <%}         
%>
                    </table>
</form>					
					</td>
			     </tr>
              </table>
					  </td>
         
            </tr>
          </table></td>
        </tr>
      </table>
      <jsp:include page="copyright.jsp"/>
    </td>
  </tr>
</table>
</td>
  </tr>
</table>
</body>
</html>

